class Collection < ActiveRecord::Base
  
  has_many :user_collections
  
  attr_accessible :books_nb, :description, :title, :type
  validates :title, :presence => true, :length => { :minimum => 1 }
  
  
  def to_s
    "#{self.title}"
  end
  
end
